﻿namespace WMS6.Web.BaseInfoServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, DataContract(Name="CycleCountClassInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class CycleCountClassInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string ClassDescField;
        [OptionalField]
        private string ClassIDField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private int CycleDaysField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string IsActiveField;
        [OptionalField]
        private decimal NegCntVarianceField;
        [OptionalField]
        private decimal NegValueVarianceField;
        [OptionalField]
        private decimal PosQtyVarianceField;
        [OptionalField]
        private decimal PosValueVarianceField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string ClassDesc
        {
            get
            {
                return this.ClassDescField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ClassDescField, value))
                {
                    this.ClassDescField = value;
                    this.RaisePropertyChanged("ClassDesc");
                }
            }
        }

        [DataMember]
        public string ClassID
        {
            get
            {
                return this.ClassIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ClassIDField, value))
                {
                    this.ClassIDField = value;
                    this.RaisePropertyChanged("ClassID");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public int CycleDays
        {
            get
            {
                return this.CycleDaysField;
            }
            set
            {
                if (!this.CycleDaysField.Equals(value))
                {
                    this.CycleDaysField = value;
                    this.RaisePropertyChanged("CycleDays");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string IsActive
        {
            get
            {
                return this.IsActiveField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsActiveField, value))
                {
                    this.IsActiveField = value;
                    this.RaisePropertyChanged("IsActive");
                }
            }
        }

        [DataMember]
        public decimal NegCntVariance
        {
            get
            {
                return this.NegCntVarianceField;
            }
            set
            {
                if (!this.NegCntVarianceField.Equals(value))
                {
                    this.NegCntVarianceField = value;
                    this.RaisePropertyChanged("NegCntVariance");
                }
            }
        }

        [DataMember]
        public decimal NegValueVariance
        {
            get
            {
                return this.NegValueVarianceField;
            }
            set
            {
                if (!this.NegValueVarianceField.Equals(value))
                {
                    this.NegValueVarianceField = value;
                    this.RaisePropertyChanged("NegValueVariance");
                }
            }
        }

        [DataMember]
        public decimal PosQtyVariance
        {
            get
            {
                return this.PosQtyVarianceField;
            }
            set
            {
                if (!this.PosQtyVarianceField.Equals(value))
                {
                    this.PosQtyVarianceField = value;
                    this.RaisePropertyChanged("PosQtyVariance");
                }
            }
        }

        [DataMember]
        public decimal PosValueVariance
        {
            get
            {
                return this.PosValueVarianceField;
            }
            set
            {
                if (!this.PosValueVarianceField.Equals(value))
                {
                    this.PosValueVarianceField = value;
                    this.RaisePropertyChanged("PosValueVariance");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

